package com.hee.erp.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.hee.erp.config.ListNotEmptyFilter;
import lombok.Data;

import java.util.List;

@Data
public class ZTreeNode {
    private String id;
    private String pId;
    private String name;
    private boolean open;
    private boolean checked;
    private boolean isParent;
    private String type;

    public boolean getIsParent() {
        return isParent;
    }

    public void setIsParent(boolean parent) {
        isParent = parent;
    }

    @JsonInclude(value = JsonInclude.Include.CUSTOM,valueFilter = ListNotEmptyFilter.class)
    private List<ZTreeNode> children;
}
